<template>
    <!--https://h5.ele.me/shop/#geohash=ww0v3q6mu7w3&id=557178-->
    <div class="root">
        <div class="cont">
            <div class="left">
                <h1>{{pingfen.food_score|pj}}</h1>
                <p>综合评价</p>
                <span>高于周边商家{{pingfen.compare_rating|gy}}</span>
            </div>
            <div class="right">
                <p>服务态度
                    <span>
                        <rater v-model="pingfen.service_score" :font-size='starsize' active-color="#FFB240" disabled></rater>
                        <!--<Rater v-model="v.rating" active-color='#FFAA0C' :font-size='starSize' disabled></Rater>-->
                        <span style="color:#FF6600">{{pingfen.service_score | pj}}</span>
                    </span>
                </p>
                <p>菜品评价
                    <span>
                        <rater v-model="pingfen.overall_score" :font-size='starsize' active-color="#FFB240" disabled></rater>
                        <span style="color:#FF6600"> {{pingfen.overall_score | pj}}</span>
                    </span>
                </p>
                <p>送达时间
                    <span style="color:red;"> {{pingjia.order_lead_time}}分钟</span>
                </p>
            </div>
        </div>
    
        <hr/>
        <ul class="quanbu">
            <li v-for='q in quanbu'>{{q.name}} ({{q.count}})</li>
        </ul>

        <div class="yonghu">
            <img src="/">
            <div class="right">

            </div>
        </div>
    </div>
</template>


<script>
import { Rater } from 'vux'

export default {
    props: [
        'pingjia',
        'pingfen',
        'quanbu'
    ],
    components: {
        Rater
    },
    data() {
        return {
            starsize: 14,
        }
}
}
</script>

<style scoped>
.root {
    border-top: 1px solid #EEEEEE;
}

.cont {
    display: flex;
    justify-content: space-between;
}

.left {
    width: 80%;
    height: 110px;
    /*border: 1px solid blue;*/
    text-align: center;
}

.left h1 {
    font-weight: 100;
    font-size: 3rem;
    color: #FF6600;
    margin: 10px 0px 0px;
}

.left p {
    color: #666666;
    margin: 0px;
    font-size: 1.4rem;
}

.left span {
    color: #999999;
}

.right {
    width: calc(100vh - 31%);
    height: 110px;
    /*border: 1px solid red;*/
    border-left: 1px solid #EEEEEE;
    box-sizing: border-box;
    padding-left: 30px;
    font-size: 13px;
}

hr {
    border: 2px solid #EEEEEE;
    margin: 0px;
}

.quanbu {
    box-sizing: border-box;
    padding: 10px;
    list-style: none;
    border-bottom: 2px solid #EEEEEE;
    padding-bottom: 20px;
}

.quanbu li {
    font-size: 1.3rem;
    color:#6D7885;
    padding: 5px;
    border: 1px solid grey;
    margin: 5px 5px 0 0;
    padding-bottom: 10px;
    display: inline-block;
    border-radius: 5px;
    background-color: #EBF5FF;
}
.quanbu li:nth-child(1) {
    color: white;
    background-color:#3190E8;
}
.quanbu li:nth-child(3) {
    background-color:#F5F5F5;
}

.yonghu{
    display: flex;
    justify-content: space-between;
}
.yonghu img{
    width: 50%;
    height: 100px;
}
.yongyu .right{
    width: 79%;
    height: 100px;
    border: 1px solid black;
}
</style>

